package com.xiaoyang.controller;

import com.xiaoyang.domain.Hero;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @auther XiaoYang
 * @DATE 2023/5/8-18:08
 */
@RestController
public class ConfigController {

    @Autowired
    private Hero hero;

    @GetMapping("/heroInfo")
    public String heroInfo() {
        return hero.toString();
    }

}
